package edu.sctu.renpingan.mysubwaysystem.util;

import edu.sctu.renpingan.mysubwaysystem.appbean.PeopleAppbean;
import edu.sctu.renpingan.mysubwaysystem.appbean.SubwayAppbean;
import edu.sctu.renpingan.mysubwaysystem.data.SetPeopleData;
import edu.sctu.renpingan.mysubwaysystem.data.SetSubwayDate;

/**
 * Created by renpingan on 2015/6/2.
 */
public class PeopleDeth {
    private SetPeopleData people ;
    private SetSubwayDate setSubwayDate ;
    public PeopleDeth(){
        people = new SetPeopleData();

    }
    public void getpeople(){

    }

    public void getIntoSubwayStation(PeopleAppbean people, SubwayAppbean subwayAppbean) {
    }


//    PeopleAppbean people = new PeopleAppbean();
//    PeopleTimeDeth peopleTimeDeth = new PeopleTimeDeth(people);
//    public void getIntoSubwayStation(PeopleAppbean people,SubwayAppbean subwayAppbean) {
//
//        int a;
//        for (a = 0; a <2; a++) {
//
//            people = new SetPeopleData().setpeopledata().get(a);
//            System.out.println(a);
//            subwayAppbean = new SetSubwayDate().a();
//            if (new EmergencyDeth(subwayAppbean).Emergency()) {
//                System.out.println("发生紧急事件");
//                break;
//            } else {
//
//                if (people.getSteal().equals("偷窃")) {
//                    System.out.println("小偷");
//
//                } else {
//                    if (people.isHave_card()) {
//                        if (new PeopleBaoDeth(people).jiancha_bao()) {
//                            System.out.println("包有问题");
//                        } else {
//                            if (new PeopleBaoDeth(people).jiancha_water()) {
//                                System.out.println("水有问题");
//                            } else {
//                                if (people.getYu_e() > 2) {
//
//                                    System.out.println("进站");
//                                    peopleTimeDeth.run();
//                                } else {
//                                    System.out.println("您的余额已不足");
//                                    new SubwayCardDeth().congzhi(10, people);
//                                    System.out.println("您余额充值后为" + people.getYu_e());
//                                }
//                                if (people.getYu_e() >= new SubwayCardDeth().count_price(people.getStart(), people.getEnd())) {
//                                    System.out.println("您的消费后的余额为" + (people.getYu_e() - new SubwayCardDeth().count_price(people.getStart(), people.getEnd())));
//
//                                } else {
//                                    new SubwayCardDeth().congzhi(10, people);
//                                    System.out.println("您余额充值后为" + people.getYu_e());
//                                    System.out.println("您的消费后的余额为" + (people.getYu_e() - new SubwayCardDeth().count_price(people.getStart(), people.getEnd())));
//                                }
//                            }
//                        }
//                    } else {
//                        System.out.println("请您先购票");
//                        new SubwayCardDeth().buycard();
//                        if (new PeopleBaoDeth(people).jiancha_bao()) {
//                            System.out.println("包有问题");
//                        } else {
//                            if (new PeopleBaoDeth(people).jiancha_water()) {
//                                System.out.println("水有问题");
//                            } else {
//
//                                System.out.println("进站");
//                                peopleTimeDeth.run();
//                            }
//
//                        }
//
//                    }
//                }
//            }
//        }
//
//    }
}
